import request from '@/utils/request'

// 查询供应商报价单列表
export function listScmSupplierQuotes(query) {
  return request({
    url: '/scm/scmSupplierQuotes/list',
    method: 'get',
    params: query
  })
}

// 查询供应商报价单详细
export function getScmSupplierQuotes(id) {
  return request({
    url: '/scm/scmSupplierQuotes/' + id,
    method: 'get'
  })
}

// 新增供应商报价单
export function addScmSupplierQuotes(data) {
  return request({
    url: '/scm/scmSupplierQuotes',
    method: 'post',
    data: data
  })
}

// 批量新增供应商报价单
export function createScmSupplierQuotes(projectId) {
  return request({
    url: '/scm/scmSupplierQuotes/' + projectId,
    method: 'post'
  })
}

// 修改供应商报价单
export function updateScmSupplierQuotes(data) {
  return request({
    url: '/scm/scmSupplierQuotes',
    method: 'put',
    data: data
  })
}

// 删除供应商报价单
export function delScmSupplierQuotes(id) {
  return request({
    url: '/scm/scmSupplierQuotes/' + id,
    method: 'delete'
  })
}

// 采纳、不采纳供商报价单
export function updateStatusScmSupplierQuotes(id,data) {
  return request({
    url: '/scm/scmSupplierQuotes/status/' + id,
    method: 'put',
    data: data
  })
}
